<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head><title>OSS Event Manager - My Events</title>
</head>
<body>

<div id="myevents">
<c:if test="${empty events}">
    You have no events listed.  <a href="event/new">Create one</a>
</c:if>
<c:if test="${not empty events}">
    <p>My Events</p>
    <ul>
        <c:forEach items="${events}" var="event">
            <td>${event.name}</td>
            <a href="position/new">Add position for this event</a>  <a href="eventdetails"?eventName=${event.name}>Update Event Details</a>
        </c:forEach>
    </ul>
</c:if>


</div>
</body>
</html>